﻿using System.ComponentModel;
using System.Windows.Media.Imaging;

namespace ComicReader.Model
{
    public class PageData : INotifyPropertyChanged
    {
        public long Number { get; set; }


        public BitmapImage Image { get; set; }
        

        public event PropertyChangedEventHandler PropertyChanged;

        protected void OnPropertyChanged(string propertyName)
        {
            var handler = PropertyChanged;
            if (handler != null)
            {
                handler(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}
